/* liefOS Design Language CSS for Applications
    Copyright (c) 2024 - 2026 Liejan Lawrsel Luengo
*/

@font-face {
    font-family: 'Google Sans Flex';
    src: url('https://assets-liefos.netlify.app/font/googlesansflex/GoogleSansFlex-VariableFont_GRAD,ROND,opsz,slnt,wdth,wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-stretch: 25% 151%;
    font-style: oblique 0deg 90deg;
    font-display: swap;
}

@font-face {
    font-family: 'Open Sans';
    src: url('https://assets-liefos.netlify.app/font/opensans/OpenSans-VariableFont_wdth,wght.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-stretch: 75% 100%;
    font-display: swap;
}

:root {
    --background: rgb(228, 228, 228);
    --text: black;
    --main_color: rgba(255, 255, 255, 0.5);
    --border: rgba(0, 0, 0, 0.1);
    --input_focus: rgba(0, 0, 0, 0.4);
    --shadow: rgba(0, 0, 0, 0.2);
    --font: "Google Sans Flex";
    --hover: 700;
    --blur: blur(5px) brightness(1.2) saturate(1.2);
    --transition: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

html.liefOS_UIDark {
    --background: rgb(0, 0, 0);
    --text: white;
    --main_color: rgba(15, 15, 15, 0.5);
    --border: rgba(255, 255, 255, 0.1);
    --input_focus: rgba(255, 255, 255, 0.2);
    --blur: blur(10px) brightness(0.7) saturate(1.2);
}

* {
    box-sizing: border-box;
    scrollbar-width: none;
    overscroll-behavior-y: none;
    user-select: none;
    font-family: var(--font);
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: var(--font);
    padding: 0;
    margin: 0;
    scrollbar-width: none;
}

.TopArea {
    padding: 75px 40px 40px 40px;
    top: 0;
    position: sticky;
    z-index: 10;
    display: flex;
    overflow-x: scroll;
    white-space: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    color: var(--text);
}

.TopArea > * {
    flex-shrink: 0;
}

.TopArea.Dynamic:hover button,
.TopArea.Dynamic:hover .textpill,
.TopArea.Dynamic:hover input,
.TopArea.Dynamic:hover select {
    transition-delay: 0.2s;
    opacity: 1;
}

.TopArea.Dynamic button,
.TopArea.Dynamic .textpill,
.TopArea.Dynamic input,
.TopArea.Dynamic select {
    opacity: 0;
}

.TopArea.Dynamic {
    display: block;
    
}

.BottomArea {
    padding: 20px 40px 20px 40px;
    bottom: 0;
    left: 0;
    right: 0;
    background: transparent;
    position: fixed;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    color: var(--text);
    box-sizing: border-box;
}

input {
    min-width: 2px;
    background: var(--main_color);
    box-shadow: 0 5px 15px var(--shadow);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    color: var(--text);
    border: none;
    border-radius: 35px;
    padding: 10px 25px;
    outline: none;
    font-size: 14px;
    flex-grow: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    transition: all 0.3s ease;
}

input::placeholder {
    color: var(--text);
    opacity: 0.5;
}

.name {
    position: fixed;
    top: 25px;
    left: 39px;
    font-size: 24px;
    margin: 0;
    width: fit-content;
    max-width: 80%;
    padding: 6px 14px;
    z-index: 8;
    font-weight: bold;
    border-radius: 35px;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    background: var(--main_color);
    box-shadow: 0 5px 15px var(--shadow);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
}

html.liefOS_UIDark button {
    background: var(--main_color);
}

button:hover {
    filter: brightness(1.5);
    font-weight: var(--hover);
}

button:active {
    transform: scale(0.9);
}

button i, .textpill i, select i {
    margin-right: 8px;
}

button, .textpill, select {
    display: inline-flex;
    line-height: 18px;
    vertical-align: top;
    box-sizing: border-box;
    padding: 10px 30px;
    max-width: 100%;
    align-items: center;
    
    background: var(--main_color);
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: normal;
    text-align: center;
    
    border: none;
    outline: none;
    border-radius: 35px;
    box-shadow: 0 5px 15px var(--shadow);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    
    cursor: pointer;
    transition: all 0.3s ease !important;
}

.content {
    padding: 20px 40px 120px 40px;
    max-width: 100%;
    word-wrap: break-word;
}

.card {
    background: var(--main_color);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card_description {
    display: block;
    font-size: 0.8rem;
    opacity: 0.5;
    margin-top: 4px;
}

.code {
    font-family: 'monospace';
    background: var(--main_color);
    padding: 10px;
    border-radius: 18px;
    margin: 15px 0;
    white-space: pre-wrap;
    word-break: break-all;
    max-width: 100%;
    user-select: text;
    width: fit-content;
    border: 1px solid var(--border);
    font-size: 13px;
    line-height: 1.5;
}

h2 {
    font-size: 28px;
    margin-bottom: 5px;
}

h3 {
    font-size: 16px;
    opacity: 0.6;
    margin-top: 0;
    font-weight: normal;
}

p {
    line-height: 1.6;
    font-size: 15px;
}

b {
    font-weight: 600;
}

table {
    width: fit-content;
    margin: 20px 0;
    background: var(--main_color);
    border-radius: 20px;
    font-size: 14px;
    display: block;
    max-width: 100%;
    overflow-x: scroll;
    -webkit-overflow-scrolling: touch;
    border-collapse: collapse;
}

th {
    background: var(--main_color);
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
}

tr:last-child td {
    border-bottom: none;
}

.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100dvw;
    opacity: 0;
    pointer-events: none;
    height: 100dvh;
    background: var(--main_color);
    background-color: var(--background);
    z-index: 20;
    overflow-y: auto;
    transition: all 0.5s ease;
    padding: 40px;
    box-sizing: border-box;
}

html.liefOS_UIDark .fullscreen-menu {
    background: var(--background)
}

.fullscreen-menu.active {
    opacity: 1;
    pointer-events: auto;
}

.grid-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.grid-category {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.grid-category h3 {
    grid-column: 1 / -1;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.grid-item {
    background: var(--main_color);
    padding: 25px;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.grid-item:hover {
    transform: translateY(-5px);
    background: var(--main_color);
}

.close-menu {
    position: sticky;
    top: 0;
    margin-right: auto;
    display: block;
    z-index: 100;
    cursor: pointer;
}

.image-preview {
    background: var(--main_color);
    border-radius: 20px;
    margin-bottom: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: fit-content;
    max-width: 100%;
    pointer-events: none;
}

.image-preview .img-container {
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
}

.image-preview img {
    display: block;
    max-width: 100%;
    max-height: 280px;
    width: auto;
    border-radius: 12px;
    height: auto;
    object-fit: contain;
}

.image-preview .img-path {
    padding: 8px 15px;
    font-size: 11px;
    opacity: 0.5;
    border-top: 1px solid var(--border);
}

select,
::picker(select) {
    appearance: base-select;
    scrollbar-width: none;
}

select:hover {
    filter: brightness(1.1);
    font-weight: var(--hover);
}

::picker(select) {
    background: var(--main_color);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
    border: none;
    font-weight: normal;
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0 15px 35px var(--shadow);
    margin-top: 8px;
    opacity: 0;
    transform: scale(0.8);
    transition: 
        opacity 0.25s ease-out, 
        transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.1),
        overlay 0.25s allow-discrete, 
        display 0.25s allow-discrete;
}

select:open::picker(select) {
    opacity: 1;
    transform: scale(1);
}

@starting-style {
    select:open::picker(select) {
        opacity: 0;
        transform: scale(0.8);
    }
}

option {
    padding: 8px 12px;
    border-radius: 35px;
    font-family: var(--font);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

select::picker-icon {
    display: none;
}

option:hover {
    font-weight: var(--hover);
}

option:checked {
    font-weight: var(--hover);
}

::checkmark {
    display:none;
}

.choice-item {
    padding: 8px 12px;
    border-radius: 35px;
    font-family: var(--font);
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, font-weight 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    touch-action: auto;
}

.choice-item:hover {
    font-weight: var(--hover);
}

.choice-spacer {
    height: 1px;
    background: var(--border);
    margin: 6px 10px;
}

html.liefOS_UIDark .choice-item:hover {
    background: rgba(255, 255, 255, 0.05);
}